package com.brunobas.pontosmart.custom.textview;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

public class UbuntuMonoTextView extends TextView {

	public UbuntuMonoTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		
		init();
    }

    public UbuntuMonoTextView(Context context, AttributeSet attrs, int defStyle) {
    	super(context, attrs, defStyle);
    	
    	init();
    }

    public UbuntuMonoTextView(Context context) {
    	super(context);
    	
    	init();
    }
    
    private void init() {
    	
    	Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fontes/ubuntu_mono_regular.ttf");
        setTypeface(tf ,1);
    }
}
